package com.zjq.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class Order {
    private int orderId;
    private int fastMail;
    private String createTime;
    private int userId;
    private User user;
    private int addressId;
    private Address address;
    private String remarks;

    public Order(int orderId, String createTime, int userId, int addressId, String remarks, int state, int total) {
        this.orderId = orderId;
        this.createTime = createTime;
        this.userId = userId;
        this.addressId = addressId;
        this.remarks = remarks;
        this.state = state;
        this.total = total;
    }

    private int state;
    private int total;
    private List<OrderList> orderLists;

    public Order(int orderId, String createTime, int userId, int addressId, int total,int state) {
        this.orderId = orderId;
        this.createTime = createTime;
        this.userId = userId;
        this.addressId = addressId;
        this.total = total;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    public int getFastMail() {
        return fastMail;
    }

    public void setFastMail(int fastMail) {
        this.fastMail = fastMail;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public int getAddressId() {
        return addressId;
    }

    public void setAddressId(int addressId) {
        this.addressId = addressId;
    }

    public Address getAddress() {
        return address;
    }

    public void setAddress(Address address) {
        this.address = address;
    }

    public String getRemarks() {
        return remarks;
    }

    public void setRemarks(String remarks) {
        this.remarks = remarks;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public int total() {
        return total;
    }

    public void total(int total) {
        this.total = total;
    }

    public List<OrderList> getOrderLists() {
        return orderLists;
    }

    public void setOrderLists(List<OrderList> orderLists) {
        this.orderLists = orderLists;
    }
}
